<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/assets/restaurant/css/style.css">
    <link rel="stylesheet" href="../../../assets/restaurant/css/normalize.css">
</head>
<body>
<div class="wraper" style="background-color: #333542;padding:0 0.31vw;">
    <div class=" text-center font-white" id="headers">
        <!-- 欢迎光临{BEESCRM:$restaurant_name}-->
        您点的菜已经出锅啦，等您来取！
        <!--<a href="#" class="right"><img src="/assets/restaurant/images/Refresh.png" alt=""></a>-->
    </div>
    <div id="list" class="clearfix" style="padding:  0 1.4vw">
        <volist name="datas" id="vo">
            <div class="box tb-mode half2 pull-left " style="background-color:#ea2020 ;border-bottom: 1px solid #ea2020;color: #fff;padding:0 3vw;margin-top: 2.34vw">
                <div class="number tb-cell" style="font-size: 9.57vw;">
                    <div>{BEESCRM:$vo.order_num}<span>号</span></div>
                </div>
                <div class="tb-cell ">
                    <div class="padding-l40" style="font-size: 9.57vw;text-align: right;">{BEESCRM:$vo.goods_name}</div>
                </div>
            </div>
        </volist>
    </div>
    <input type="hidden" class ="page" value="{BEESCRM::$p}">
    <input type="hidden" class ="count" value="{BEESCRM::$count}">
</div>
</body>
<script src="/assets/restaurant/js/jquery-2.1.0.min.js"></script>

<script>
    var height=$(window).height();
    $('.wraper').css('height',height)

    var p = $(".page").val();
    var count = $(".count").val();
    if(!p){
        p=1;
    }
    /*console.log(p);
     var datas = "{BEESCRM:$datas}";
     console.log(datas);*/
    if(count < 3){
        setTimeout(fun,5000);
        function fun(){
            window.location.href = "/restaurantstyy/ZduScreen/oneScreen?restaurant_id={BEESCRM:$restaurant_id}&p=1";
        }
    }else {
        //var total = datas.length;
        setTimeout(task,5000);
        //task();
        function task() {

            //clearInterval(time2);
            window.location.href = "/restaurantstyy/ZduScreen/oneScreen?restaurant_id={BEESCRM:$restaurant_id}&p="+p;
        }
        /*var data = datas;
         var html = '';
         for (var i = 0; i < data.length; i++) {
         html += '<div class="box tb-mode half3 pull-left " style="background-color:#ffffff "> <div class="number text-center tb-cell font-120" style="color: #2a2a2a"><div>' + data[i].order_num + '<span style="font-size: 80px;color: #2a2a2a;">号</span></div></div> <div class="tb-cell "> <div class="padding-l40" style="color: #2a2a2a">' + data[i].goods_name + '</div></div></div>';
         //            html += '<div class="box tb-mode"> <div class="number text-center font-white tb-cell">'+data[i].order_num+'号</div> <div class="font-48 tb-cell padding-l40">'+data[i].goods_name+'</div> <div class="font-blue font-40 tb-cell width-200 text-right"><img src="/assets/restaurant/images/dqc.gif" alt=""></div> </div>';
         }
         $('#list').empty();
         $('#list').append(html);
         page_index++;*/
        //var time2 = setInterval(task, 5000);
    }
</script>
</html>